<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<link rel="stylesheet" type="text/css" href="<c:url value='/css/classHeader-stu.css'/>"/>

<div class="row">
	<!--课程名称&&课程基本信息-->
	<div class="col-xs-12 col-md-12" style="background-image: url(../image/course-info-bg.png);background-size: 100% 100%;background-repeat: no-repeat;">
		<div class="stu-course-info-title">
			<div class="row">
				<div class="col-md-12">
					<!--链接导航-->
					<div class="link-intro">
						<a href="<c:url value='/lesson/studentCLesson'/>" >首页</a>&nbsp;>&nbsp;
						<span class="navClassName" style="color:#e8f772;"></span>
					</div>
				</div>
				<div class="col-xs-12 col-md-12">
					<div class="row">
						
						<div class="col-xs-12 col-md-12">
							<div class="row">
								<!--课程名称-->
								<div class="stu-course-courseHeader">
									<div class="link-index">
										<a href="<c:url value='/lesson/studentCLesson'/>" >
											首页
										</a>
									</div>
									<div class="stu-course-courseName"></div>
								</div>
								<!--班级名称-->
								<div class="stu-course-className">
									
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12">
					<!--课程基本信息-->
					<div class="stu-course-courseInfo">
						<div class="col-md-12">
							<ul>
								<li>
									<div class="ctitle">课时</div>
									<div class="time"></div>
								</li>
								<li>
									<div class="ctitle">课程学分</div>
									<div class="credit"></div>
								</li>
								<li>
									<div class="ctitle">课程总周次</div>
									<div class="sumWeek"></div>
								</li>
								<li>
									<div class="ctitle">是否有理论课</div>
									<div class="has-theory"></div>
								</li>
								<li>
									<div class="ctitle">是否有实验课</div>
									<div class="has-lab"></div>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
var initClassView = function(classView){
	$(".navClassName").text(classView.courseName);
	$(".stu-course-courseName").text(classView.courseName);
	$(".stu-course-className").text(classView.className);
	$(".time").text(classView.courseHour);
	$(".credit").text(classView.credit);
	$(".sumWeek").text(classView.sumWeeks);
	$(".has-theory").text(classView.hasTheory==1?"是":"否");
	$(".has-lab").text(classView.hasLab==1?"是":"否");
	if(classView.description.indexOf("<before>")>-1){
		$(".description").text("通知："+classView.description.substring(0,classView.description.indexOf("<before>")));
		$(".description").attr("title","通知："+classView.description.substring(0,classView.description.indexOf("<before>")));
	}else{
		$(".description").text("简介："+classView.description);
		$(".description").attr("title","简介："+classView.description);
	}
	
	$(".teacher").text(classView.tname);
	$(".teacher").attr("title",classView.tname);
	$(".teacher-email").text(classView.temail);
	$(".teacher-email").attr("title",classView.temail);
	$(".teacher-phone").text(classView.ttelphone);
	$(".teacher-phone").attr("title",classView.ttelphone);
}

</script>